﻿using Autofac;
using VisionCloud.Utility;

namespace VisionSurface.Web.Config
{
    public class AutofacModuleRegister : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            IocConfig.Init(builder);
            builder.RegisterBuildCallback(container =>
            {
                StartupServer.IocContainer = (IContainer)container;
            });
        }
    }
}
